package cn.tedu.antcolony.passport.security.iml;


import cn.tedu.antcolony.passport.mapper.RoleMapper;
import cn.tedu.antcolony.passport.pojo.vo.RoleListVo;
import cn.tedu.antcolony.passport.service.IRoleServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 角色实现类
 */
@Service
@Slf4j
public class RoleServerImpl implements IRoleServer {

    @Autowired
    private RoleMapper roleMapper;

    /**
     * 查询所有角色
     * @return
     */
    @Override
    public List<RoleListVo> list() {
      log.debug("开始执行【查询角色】业务");
        List<RoleListVo> list = roleMapper.list();
        return list;
    }
}
